package bigk.pluzzdl;

import android.os.Handler;
import android.os.Message;
import android.widget.ProgressBar;

public class ProgressHandler extends Handler {
	private ProgressBar m_progress;
	private boolean m_isCancel;
	
	public ProgressHandler(ProgressBar progress) {
		m_progress = progress;
	}
	
	public int getProgress() {
		return m_progress.getProgress();
	}
	
	

	public void setCancel(boolean isCancel) {
		m_isCancel = isCancel;
	}

	public boolean isCancel() {
		return m_isCancel;
	}

	@Override
	public void handleMessage(Message msg) {
		m_progress.setProgress(msg.what);
		super.handleMessage(msg);
	}
	
	
}
